package com.hlkj.baojin.utils;

import java.util.regex.Pattern;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.utils
 * @description:
 * @date 2019/1/10 13:05
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
public class PatternUtil {


    /**
     * 字符串模糊匹配
     * @param source
     * @return
     */
    public static Pattern fuzzyMatch(String source) {
        return Pattern.compile("^.*" + source + ".*$", Pattern.CASE_INSENSITIVE);
    }
}
